package com.dinnerorders.common.services;

import java.util.Collection;

/**
 * @author Sergey Nalivko e-mail: snalivko93@gmail.com
 */
public interface LdapService {
    /**
     * Checks weather the user with given login and password exists
     * @param login user's login
     * @param password user's password
     * @return true if such user exists and false otherwise
     */
    public boolean checkUser(String login, String password);

    /**
     * Gets user's name by his login
     * @param login user's login
     * @return user's name
     */
    public String getUserName(String login);

    /**
     * Loads all user's names
     * @return collection which contains
     */
    public Collection<String> loadAll();
}
